﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace ImmovablesManager
{
    public class DataGridLogDataView : INotifyPropertyChanged
    {

        private Guid _logId;
        public Guid LogId
        {
            get { return _logId; }
            set
            {
                _logId = value;
                NotifyPropertyChanged("LogId");
            }
        }

        private Guid? _logCardId;
        public Guid? LogCardId
        {
            get { return _logCardId; }
            set
            {
                _logCardId = value;
                NotifyPropertyChanged("LogCardId");
            }
        }

        private string _logCardNumber;
        public string LogCardNumber
        {
            get { return _logCardNumber; }
            set
            {
                _logCardNumber = value;
                NotifyPropertyChanged("LogCardNumber");
            }
        }

        private string _logOperation;
        public string LogOperation
        {
            get { return _logOperation; }
            set
            {
                _logOperation = value;
                NotifyPropertyChanged("LogOperation");
            }
        }

        private string _logDate;
        public string LogDate
        {
            get { return _logDate; }
            set
            {
                _logDate = value;
                NotifyPropertyChanged("LogDate");
            }
        }

        private string _logOldValue;
        public string LogOldValue
        {
            get { return _logOldValue; }
            set
            {
                _logOldValue = value;
                NotifyPropertyChanged("LogOldValue");
            }
        }

        private string _logNewValue;
        public string LogNewValue
        {
            get { return _logNewValue; }
            set
            {
                _logNewValue = value;
                NotifyPropertyChanged("LogNewValue");
            }
        }


        private string _logWho;
        public string LogWho
        {
            get { return _logWho; }
            set
            {
                _logWho = value;
                NotifyPropertyChanged("LogWho");
            }
        }

        private string _logState;
        public string LogState
        {
            get { return _logState; }
            set
            {
                _logState = value;
                NotifyPropertyChanged("logState");
            }
        }

        private void NotifyPropertyChanged(String info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }

        #region Implementation of INotifyPropertyChanged

        public event PropertyChangedEventHandler PropertyChanged;

        #endregion
    }
}
